package com.thx.common.web;

import java.util.List;

/**
 * 分页查询结果类.
 *
 * @author 贾红磊
 */
public class SearchResult<T> {
  private List<T> items;
  private int count;

  public List<T> getItems() {
    return items;
  }

  public void setItems(List<T> items) {
    this.items = items;
  }

  public int getCount() {
    return count;
  }

  public void setCount(int count) {
    this.count = count;
  }

  public void add(T object) {
    this.items.add(object);
  }
}
